﻿
/****** Object:  User Defined Function dbo.GetAnalitic    Script Date: 2/4/2006 10:03:35 PM ******/
CREATE FUNCTION GetAnalitic (@Cont TipCont)  
RETURNS TipCont  AS  
BEGIN 
DECLARE @posPunct int
SET @posPunct = CHARINDEX('.',@Cont)
DECLARE @ret TipCont
SET @ret = ''
IF @posPunct <> 0
	BEGIN
		SET @ret = SUBSTRING(@Cont	,@posPunct+1,LEN(@Cont)-@posPunct)
	END
return @ret	
END